package com.oocl.euc.core.maintenance.repository;

import com.oocl.euc.core.maintenance.model.SupportGroup;
import com.oocl.euc.framework.base.persistence.IBaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SupportGroupRepository extends IBaseRepository<SupportGroup, Long> {

    @Query(value = "SELECT SG FROM SupportGroup SG WHERE SG.groupName = ?1")
    SupportGroup findByGroupName(String groupName);
}
